package com.lin.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.lin.pojo.PageVo;
import com.lin.pojo.SysMenus;
import com.lin.pojo.SysRoles;
import com.lin.pojo.SysUsers;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.List;
import java.util.Map;


public interface SysRolesService extends IService<SysRoles> {

    //显示所以菜单
    SysRoles rolesbyMenus(SysUsers users,Integer id);
    //循环查找所以子菜单
    List<SysMenus> querybymenus(SysUsers users,Integer id);

    public Map addSysroles(SysRoles sysRoles);

    public Map delSysroles(int id);

    public Map upddateSysroles(SysRoles sysRoles);

    public PageVo<SysRoles> querySysrolesbycond(SysRoles sysRoles,int pageno,int pagesize);

}